RxCommand class¶
Defined in
Namespace: ReactiveMarbles.Command
Assembly: ReactiveMarbles.Command.dll
Full name: ReactiveMarbles.Command.RxCommand<T1, T2>
Modifiers: public
Summary¶
Encapsulates a user interaction behind a reactive interface.
Applies to
netstandard2.0
Class hierarchy
classDiagram
class RxCommand~T1,T2~
class IRxCommand~TParam, TResult~ {
<>
}
IRxCommand~TParam, TResult~ <|.. RxCommand~T1,T2~
class IRxCommand {
<>
}
IRxCommand <|.. RxCommand~T1,T2~
class ICommand {
<>
}
ICommand <|.. RxCommand~T1,T2~
class IDisposable {
<>
}
IDisposable <|.. RxCommand~T1,T2~
class IObservable~TResult~ {
<>
}
IObservable~TResult~ <|.. RxCommand~T1,T2~
Implements: IRxCommand
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [RxCommand](# class. |
Properties¶
| Name | Summary |
|---|---|
| CanCommandExecute | Gets an observable whose value indicates whether the command can currently execute. |
| IsExecuting | Gets an observable whose value indicates whether the command is currently executing. |
| ThrownExceptions | Gets an observable that ticks any exceptions in command execution logic. |
Methods¶
| Name | Summary |
|---|---|
| Execute | Encapsulates a user action behind a reactive interface. This is for interop inside for the command binding. Not meant for external use due to the fact it doesn't implement... |
| Subscribe | Encapsulates a user action behind a reactive interface. This is for interop inside for the command binding. Not meant for external use due to the fact it doesn't implement... |
| Dispose | |
| OnCanExecuteChanged | Will trigger a event when the CanExecute condition has changed. |
| ICommandCanExecute | Will be called by the methods from the ICommand interface. This method is called when the Command should evaluate if it can execute. |
| ICommandExecute | Will be called by the methods from the ICommand interface. This method is called when the Command should execute. |